package com.gxl.design.strategypattern;

import com.gxl.design.strategypattern.strategy.Strategy;

public class Content {

    private Strategy strategy;

    public Content(Strategy strategy,Integer price) {
        this.strategy = strategy;
        this.excuteOperation(price);
    }

    private void  excuteOperation(Integer price){
        this.strategy.doOperation(price);
    }

}
